package xyz.yuanwl.demo.restful.web;

import org.springframework.web.bind.annotation.*;
import xyz.yuanwl.demo.restful.bean.ReqParam;

/**
 * @author yuanwl
 * @date 2019-07-11 16:49
 */
@RestController
@RequestMapping
public class DemoController {
	@PostMapping("/ac1")
	public String ac1(@RequestParam Integer i) {
		return i + "";
	}

	@PostMapping("/ac2")
	public String ac2(@RequestParam Integer i, @RequestBody ReqParam reqParam) {
		return i + ", " + reqParam;
	}

}
